cmake_minimum_required(VERSION 3.5.2)
project(QMainWindow_Example
	LANGUAGES CXX
)
set(MAINSRC ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/function)
file(GLOB FUNCTION_SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/function/*.cpp)

add_executable(MainWindow
	${MAINSRC}
	mainwindow.cpp
	${FUNCTION_SOURCE}
)

target_link_libraries(MainWindow PRIVATE Qt5::Widgets)
